package com.itheima.myAnno.test1;

import com.itheima.myAnno.Fu;

public class Zi extends Fu {
    @Override//重写父类的方法
    public void show() {
        System.out.println("我是子类的show方法");
    }
    @Deprecated
    public void method(){
        System.out.println("我是子类的method方法");
    }
    @SuppressWarnings(value = "All")
    public void function(){
        System.out.println("我是子类的function方法");
    }

    public static void main(String[] args) {
        Zi zi = new Zi();
        zi.method();//过时的方法
    }
}
